-
Notifications
You must be signed in to change notification settings - Fork 18.1k
encoding/json: increment byte counter when using decoder.Token #43716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: 97cb782) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/284078 to see it. Tip: You can toggle comments from me using the |
Message from Daniel Martí: Patch Set 1: Code-Review+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
At every iteration of decoder.Token(), scaner.bytes does not increment when it meets spaces and other non value token. Signed-off-by: Peng Gao <[email protected]> Change-Id: Id41b7e22e2c45fffc7fafacd618724f0f214dd2f
97cb782
to
4cf3ee9
Compare
Message from Daniel Martí: Patch Set 1: Run-TryBot+1 Code-Review+2 Trust+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
This PR (HEAD: 4cf3ee9) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/284078 to see it. Tip: You can toggle comments from me using the |
Message from Daniel Martí: Patch Set 2: Run-TryBot+1 Code-Review+2 Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Go Bot: Patch Set 2: TryBots beginning. Status page: https://farmer.golang.org/try?commit=8d5d7856 Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Daniel Martí: Patch Set 3: Run-TryBot+1 Code-Review+2 Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Go Bot: Patch Set 3: TryBots beginning. Status page: https://farmer.golang.org/try?commit=38b5b143 Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Heschi Kreinick: Patch Set 3: Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Go Bot: Patch Set 3: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Joe Tsai: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Peng Gao: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Joe Tsai: Patch Set 3: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Alexander Yastrebov: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Daniel Martí: Patch Set 1: Code-Review+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Daniel Martí: Patch Set 1: Run-TryBot+1 Code-Review+2 Trust+1 (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Daniel Martí: Patch Set 2: Run-TryBot+1 Code-Review+2 Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Go Bot: Patch Set 2: TryBots beginning. Status page: https://farmer.golang.org/try?commit=8d5d7856 Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Daniel Martí: Patch Set 3: Run-TryBot+1 Code-Review+2 Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Go Bot: Patch Set 3: TryBots beginning. Status page: https://farmer.golang.org/try?commit=38b5b143 Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Heschi Kreinick: Patch Set 3: Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Go Bot: Patch Set 3: TryBot-Result+1 TryBots are happy. Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Joe Tsai: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Peng Gao: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Joe Tsai: Patch Set 3: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
Message from Alexander Yastrebov: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/284078. |
At every iteration of decoder.Token, scaner.bytes does not increment
when it meets spaces and other non value token.
Fixes #34543.